package com.neuedu.his.controller;

import com.neuedu.his.common.core.BaseController;
import com.neuedu.his.common.core.BaseService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * 项目：      his
 * 类名:       LoginController
 * 创建时间：  2023/12/1 11：47
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 * http://localhost:8080/his_server/login?_type=login
 * http://localhost:8080/his_server/login/login
 */
@WebServlet("/login/*")
public class LoginController  extends BaseController {

    public Map login(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        Map result = new HashMap();
        result.put("token","admin-token");

        return  result;
    }

    @Override
    public BaseService getService() {
        return null;
    }
}
